package com.jame.test.aoptest.config;

import com.jame.annotations.aop.AopChoiceAfter;
import com.jame.annotations.aop.AopChoiceAround;
import com.jame.annotations.aop.AopChoiceBefore;
import com.jame.annotations.aop.AopConfig;
import com.jame.annotations.bean.Configuration;

/**
 * @author : Jame
 * @date : 2021-07-02 10:08
 **/
@Configuration
@AopConfig
public class MyAopConfig {

    @AopChoiceBefore("*.com.jame.*.*.String")
    public void a(){
        System.out.println("***返回类型为String的前置增强");
    }

    @AopChoiceAfter("*.com.jame.*.*.String")
    public void b(){
        System.out.println("***返回类型为String的后置增强");
    }

    @AopChoiceAround("*.com.jame.*.*.Integer")
    public void c(){
        System.out.println("***返回类型为Integer的环绕增强");
    }

    @AopChoiceBefore("*.com.jame.*.*.boolean")
    public void d(){
        System.out.println("***返回类型为boolean的前置增强");
    }

    @AopChoiceAfter("*.com.jame.*.*.void")
    public void e(){
        System.out.println("***返回类型为void的后置增强");
    }



}

